		
<%@page import="javax.jdo.PersistenceManager"%>
<%@page import="com.ykwep.web.server.PMF"%>
<%@page import="com.ykwep.web.server.data.NewsItem"%>
<%@page import="java.util.List"%>		
		
		<%
		List<NewsItem> newsItems = NewsItem.getLatestNewsItems(10);
    if (newsItems.isEmpty()) {
%>

<p>There are no news.</p>
<%
    } else {
    	%>
    	
    	<ul>
    	<% 
        for (NewsItem g : newsItems) {
%>

		
			
			
			<li><a href="/show_news.jsp?news_item_id=<%= g.getId() %>"><%= g.getTitle() %></a></li>
		 

<%
        }%>
        </ul>
    	<%
    }

%>